﻿using System;
using System.Configuration;
using System.Data;
using System.Linq;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.HtmlControls;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Xml.Linq;
using Microsoft.Practices.Unity;
using Microsoft.Practices.Unity.Configuration;
using WDA.Core;
using Sample;
using WDA.Web;

public partial class _Default : System.Web.UI.Page
{
	protected void Page_Load(object sender, EventArgs e)
	{

	}
	protected void HandleTestClick(object sender, EventArgs e)
	{
		//IUnityContainer container = new UnityContainer();
		//UnityConfigurationSection section = (UnityConfigurationSection)ConfigurationManager.GetSection("unity");
		//section.Containers["container"].Configure(container);

		//using (Services srv = new Services(container, configNameBox.Text, hostNameBox.Text, true))
		//{
		//   resultBox.Text = srv.Get<IFormatterService>().FormatDouble(
		//         srv.Get<IConverterService>().ConvertToDouble(
		//         srv.Get<IParserService>().ParseInt("1")));
		//}
		//WDAServices.GetService(		
		resultBox.Text = this.GetService<IFormatterService>().FormatDouble(
					this.GetService<IConverterService>().ConvertToDouble(
					this.GetService<IParserService>().ParseInt("1")));
	}
}
